home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Utilities / Programming / Dialog Director 0.6 / Res Utils Examples / Put Handlers.as < prev    next >
Encoding:
Text File  |  1996-12-06  |  336 b   |  20 lines  |  [TEXT/ToyS]

  1. on aaa(x)
  2.     x
  3. end aaa
  4.  
  5. on bbb()
  6. end bbb
  7.  
  8. on run
  9.     set f to new file default name "Handlers.rsrc"
  10.     res create f creator type "RSED" file type "rsrc"
  11.     set rf to res open f with write permission
  12.     try
  13.         res put rf id 1000 data aaa
  14.         res put rf id 2000 data bbb
  15.     on error number n
  16.         res close rf
  17.         error number n
  18.     end try
  19.     res close rf
  20. end run